package com.offcn.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author zs
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_order")
@AllArgsConstructor
@NoArgsConstructor
public class Order extends Model {
    public Order(Integer id, Integer memberId, LocalDate orderdate, String ordertype, String orderstatus, Integer setmealId) {
        this.id = id;
        this.memberId = memberId;
        this.orderdate = orderdate;
        this.ordertype = ordertype;
        this.orderstatus = orderstatus;
        this.setmealId = setmealId;
    }

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 员会id
     */
    private Integer memberId;

    /**
     * 约预日期
     */
    @TableField("orderDate")
    private LocalDate orderdate;

    /**
     * 约预类型 电话预约/微信预约
     */
    @TableField("orderType")
    private String ordertype;

    /**
     * 预约状态（是否到诊）
     */
    @TableField("orderStatus")
    private String orderstatus;

    /**
     * 餐套id
     */
    private Integer setmealId;

    @TableField(exist = false)
    private Setmeal setmeal;
    @TableField(exist = false)
    private Member member;
}
